﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profile.aspx.vb" Inherits="ExpWeb.Profile" MaintainScrollPositionOnPostback="true"  %>
<%@ Register Src="~/User_Control/ucUnitView.ascx" TagPrefix="uc1" TagName="ucUnitView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="row">
        <div class="col-md-2">
            <h3>Profile</h3>
        </div>
    </div>
    <asp:MultiView ID="multiview1" runat="server" ActiveViewIndex="0">
        <asp:View ID="view0" runat="server" >
            <div class="row">
                <div class="col-md-8">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            General Info
                        </div>
                        <div class="panel-body">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>User Name :</label>
                                    <asp:Label ID="lblUserName" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Password :</label>
                                    <asp:LinkButton ID="lnkChangePass" runat="server" CssClass="form-control-static">Change</asp:LinkButton>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>First name :</label>
                                    <asp:Label ID="lblFName" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Last name :</label>
                                    <asp:Label ID="lblLName" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Mobile Phone :</label>
                                    <asp:Label ID="lblMobile" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Home Phone :</label>
                                    <asp:Label ID="lblPhone" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Email :</label>
                                    <asp:Label ID="lblEmail" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Credit Card :</label>
                                    <asp:Label ID="lblCreditCard" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label>Address : </label>
                                    <asp:Label ID="lblAddress" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div class="panel-footer">
                            &nbsp;
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Usage Info
                        </div>

                        <ul class="list-group usage">
                            <li class="list-group-item">
                                <div class="form-group">
                                    <label>Last Login date :</label>
                                    <asp:Label ID="lblLastLogin" runat="server" CssClass="form-control-static" Text="-"></asp:Label>
                                </div>
                            </li>
                            <li class="list-group-item">
                                <div class="form-group">
                                    <label>Join date :</label>
                                    <asp:Label ID="lblJoinDate" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </li>
                            <li class="list-group-item">
                                <div class="form-group">
                                    <label>Expire date :</label>
                                    <asp:Label ID="lblExpireDate" runat="server" CssClass="form-control-static"></asp:Label>
                                </div>
                            </li>
                            <li class="list-group-item" id="divPoint" runat="server">
                                <div class="form-group">
                                    <label>Point :</label>
                                    <asp:Label ID="lblPoint" runat="server" CssClass="form-control-static" Text="0"></asp:Label>
                                </div>
                            </li>
                            <li class="list-group-item" id="divUsedPoint" runat="server">
                                <div class="form-group">
                                    <label>Used point :</label>
                                    <asp:Label ID="lblUsedPoint" runat="server" CssClass="form-control-static" Text="0"></asp:Label>
                                </div>
                            </li>
                            <li class="list-group-item" id="divBalancePoint" runat="server">
                                <div class="form-group">
                                    <label>Balance point :</label>
                                    <asp:Label ID="lblBalance" runat="server" CssClass="form-control-static" Text="0"></asp:Label>
                                </div>
                            </li>
                        </ul>

                        <div class="panel-footer">
                            &nbsp;
                        </div>
                    </div>
                </div>
            </div>

            <div class="row" style="margin-bottom: 60px;">
                <div id="divOwner" runat="server">
                    <div class="col-md-12">
                        <h3>Owner units</h3>
                    </div>

                    <div class="col-md-12">

                        <asp:GridView ID="grdData" runat="server" AutoGenerateColumns="False" GridLines="None" CssClass="table table-hover" ShowHeaderWhenEmpty="True">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton runat="server" ID="lnkDetail" ToolTip="More detail" CommandName="ViewDetail" CommandArgument='<%# Eval("Unit_ID")%>'>
                                        <span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="No." DataField="RowNo" />
                                <asp:BoundField HeaderText="Resort Name" DataField="ResortName" />
                                <asp:BoundField HeaderText="Unit Type" DataField="UnitTypeName" />
                                <asp:BoundField HeaderText="Unit Number" DataField="UnitName" />
                                <asp:BoundField HeaderText="Brand" DataField="BrandName" />
                                <asp:BoundField HeaderText="Country" DataField="CountryName" />
                                <asp:BoundField HeaderText="Rate (/Night)" DataField="RatePrice" DataFormatString="{0:0,0}" />
                                <asp:BoundField HeaderText="Point (/Night)" DataField="PointPerNight" DataFormatString="{0:0,0}" />
                                <asp:BoundField HeaderText="Quota" DataField="Quota" />
                                <asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:0,0}" />
                            </Columns>

                            <EmptyDataTemplate>
                                <p class="text-center" style="margin: 20px auto; color: red;">No data</p>
                            </EmptyDataTemplate>

                        </asp:GridView>

                    </div>
                </div>
            </div>
        </asp:View>
        <asp:View ID="view1" runat="server" >
              <div class="col-lg-12">
                  <table border="0">
                      <tr><td>
                            <asp:Button ID="btnBack1View1" runat="server" Text="Back" CssClass="btn btn-default" />
                            </td> </tr> 
                       <tr><td>
                             <uc1:ucUnitView runat="server" ID="ucUnitView1"  />
                            </td> </tr> 
                       <tr><td>
                             <asp:Button ID="btnBackView1" runat="server" Text="Back" CssClass="btn btn-default" />
                            </td> </tr> 
                      </table> 
                  </div> 


              <div class="col-lg-8 col-lg-offset-2 text-middle">


              


                  <br /> <br /> <br />&nbsp;&nbsp;&nbsp;
              </div>
             <div class="col-lg-8 col-lg-offset-2 text-middle">
                    
                 </div>
        </asp:View>
    </asp:MultiView> 

   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script type="text/javascript">
        ActiveMenuIndex(4);
    </script>
</asp:Content>
